package com.example.demo.domain.equipment.repository;

import com.example.demo.domain.equipment.Budget;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface BudgetRepository extends JpaRepository<Budget,Integer> {
    List<Budget> getAllByTicketIdIsNotNull();
    //返回该id对应的数据
    Budget findByTicketId(Integer id);

    List<Budget> getAllByPlanId(String planId);
}
